<?php
namespace app\index\controller;

class Index
{
    public function index1()
    {
        return view();
    }

    public function index(){
        $data = [
            'product_id'=>1,
            'pid'=>1,
            'id'=>1
               ];   

       echo setkey($data);
       $res = getapi($data,'/wxcat/invite/my_invite');
       dump($res);
       dump(decodeData($res));
       //{"channel_id":"29","download_id":"0","ip":"172.16.2.15","mac_address":"00:81:b4:54:c8:f2","phone":"15217207905","product_id":"17","terminal_id":"4","verifycode":"4646","verifycode_id":"167630"}
    }

    
}
